/*
 * @Description: 登录路由
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2024-05-06
 * @LastEditors: xinqiao lxq1990.0716@qq.com
 * @LastEditTime: 2024-05-07
 */

import { RouteRecordRaw } from 'vue-router'

import { RouterNameEnum, RouterPathEnum } from '/@/enums/routerEnum'

export const loginRoutes: RouteRecordRaw[] = [
  {
    path: RouterPathEnum.LAYOUT,
    name: RouterNameEnum.LAYOUT,
    redirect: RouterPathEnum.LOGIN,
    children: [],
  },
  {
    path: RouterPathEnum.LOGIN,
    name: RouterNameEnum.LOGIN,
    component: () => import('/@/views/sys/login/login.vue'),
    meta: { title: '登录' },
  },
  {
    path: RouterPathEnum.REGISTER,
    name: RouterNameEnum.REGISTER,
    component: () => import('/@/views/sys/login/register.vue'),
    meta: { title: '注册' },
  },
  {
    path: RouterPathEnum.FORGOT_PWD,
    name: RouterNameEnum.FORGOT_PWD,
    component: () => import('/@/views/sys/login/forgotPwd.vue'),
    meta: { title: '忘记密码' },
  },
  {
    path: RouterPathEnum.AGREEMENT,
    name: RouterNameEnum.AGREEMENT,
    component: () => import('/@/views/sys/login/agreement.vue'),
    meta: { title: '用户隐私和服务条款' },
  },
  {
    path: RouterPathEnum.PRODUCT_LICENSE,
    name: RouterNameEnum.PRODUCT_LICENSE,
    component: () => import('/@/views/main/exchange/dataProduct/license.vue'),
    meta: { title: '许可内容' },
    // path: 'license',
    // name: 'data-product-license',
    // component: () => import('/@/views/main/exchange/dataProduct/license.vue'),
  },
]
